import { Injectable } from '@angular/core';
import {Observable} from "rxjs/Observable";
import {MsgResult} from "../../../../models/msg-result";
import {DamAPI} from "../../peach-constants";
import {RequestUtil} from "../../../../util/request-util";

@Injectable()
export class MonitorChartsService {

  constructor(
    private requestUtil: RequestUtil
  ) { }



  //后台页面空气质量数据echarts
  getHideAirQualitySiteChartsData(obj):Observable<MsgResult>{
    let params = "format=json&queryCheckCode="+obj.queryCheckCode+"&startTime="+obj.startTime+"&endTime="+obj.endTime+"&tableName="+obj.tableName+"&checkCodeType="+obj.checkCodeType+"&qualityFactor="+obj.qualityFactor;
    return this.requestUtil.get(DamAPI.getHideAirQualitySiteCharts,params);
  }

}
